home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / segal / Makefile < prev    next >
Encoding:
Makefile  |  1993-08-23  |  7.1 KB  |  303 lines

  1. TOPDIR = /home/itg2/local/HIPS2/hips2
  2. CONFIG = config.sun4
  3. HERE = user-contributed/lbl/xview/segal/
  4. CCS_ROOT = /home/itg2/local/HIPS2/hips2/user-contributed/lbl
  5.  
  6. # Sun 4 configuration file.
  7. # The file "makefile.hdr" contains code common to all makefiles.  It
  8. # should not be necessary to edit that file.
  9.  
  10. # DRIVERDIRS = Iris NeXT SunView X XView ctool sunanim xvanim xanim datacube adage
  11. DRIVERDIRS = SunView X XView ctool sunanim xvanim xanim
  12. # CONTRIBDIRS = canny cc compress fsun imsor label lbl matlab surrey tamu usl uva verdth
  13. CONTRIBDIRS = canny cc compress fsun imsor label lbl surrey tamu usl uva
  14. # MATINCLUDE = /usr/local/matlab/extern/include 
  15. MATINCLUDE = /usr/local/matlab/extern/include 
  16. # MATLABDEST = /usr/local/bin/matlab
  17. MATLABDEST = /usr/local/bin/matlab
  18. # SUNVDIRS = hipstool hipsview lblsun sunv
  19. SUNVDIRS = hipstool hipsview lblsun sunv
  20. # HTDIRS = sunos3.4 ****or**** sunos4.0
  21. HTDIRS = sunos4.0
  22. # XDIRS = lblx11 imsorx11 xhips
  23. XDIRS = lblx11 imsorx11 xhips
  24. # XVDIRS = lblxview xvhips
  25. XVDIRS = lblxview xvhips
  26. DESTROOT = /home/itg1/src/HIPS2/sun4
  27. # DESTDIR = /usr/hips
  28. DESTDIR = $(DESTROOT)/bin
  29. # LIBDIR = /usr/local/lib
  30. LIBDIR = $(DESTROOT)/lib
  31. # INCLUDE_DIR = /usr/include
  32. INCLUDE_DIR = $(DESTROOT)/include
  33. # MANDIR = /usr/man/mann
  34. MANDIR = $(DESTROOT)/man/mann
  35. MANEXT = n
  36. # LIBMANDIR = /usr/man/mann
  37. LIBMANDIR = $(DESTROOT)/man/mann
  38. LIBMANEXT = n
  39. TMPDIR = /tmp
  40. MASKDIR = $(DESTDIR)/masks
  41. MASK3DIR = $(DESTDIR)/3dmasks
  42. LIB = hips
  43. HLIB = hipsh
  44. HALIB = hipsa
  45.  
  46. FLOAT = 
  47. TARGET_ARCH = 
  48. FASTCOPY = 
  49.  
  50. #CPPFLAGS = -I$(INCLUDE_DIR) -DSTREAM_IMAGE -DSTREAM_IMAGE_LIB
  51. CPPFLAGS = -I$(INCLUDE_DIR)
  52. LIBRARYH = -l$(HLIB) -l$(LIB)
  53. LIBRARY = -l$(HALIB) -l$(HLIB) -l$(LIB)
  54. LIBRARY1 = -l$(HLIB)
  55. LIBRARY2 = -l$(LIB)
  56. HALIBRARY = -l$(HALIB)
  57. LIBNAME = lib$(LIB).a
  58. HLIBNAME = lib$(HLIB).a
  59. HALIBNAME = lib$(HALIB).a
  60. OTHERLIBS = -lm
  61. OTHERLIB2 = -ljpeg -lscs1 -lccs -lhips
  62. LDFLAGS = -L$(LIBDIR)
  63. CFLAGS = -O
  64.  
  65. ORIG = ULORIG
  66. BITORDER = MSBFVERSION
  67.  
  68. MANPRINT = psroff -Pps -man
  69. MEPRINT = psroff -Pps -me
  70. TBL = tbl
  71. EQN = eqn
  72. LORDER = lorder
  73. TSORT = tsort
  74. RANLIB = ranlib
  75. XVIEWHOME = /usr/openwin
  76. LIBXVIEW = -lxview -lolgx -lX11
  77. XINCLUDE = /usr/include
  78. XLIB = /usr/lib
  79. D3HOME =
  80.  
  81. # Stuff you like to have removed from directories to "make clean"
  82. OTHERJUNK = core *~ #* *BAK
  83. ################ Beginning of makefile.hdr ################
  84. # Stuff that goes at the beginning of all the makefiles, but is not
  85. # configuration parameters, should be in this file.  It is included
  86. # after the configuration file, and before makefile.src.
  87.  
  88. DIRS =
  89. PGMS =
  90.  
  91. SHELL = /bin/sh
  92.  
  93. COMPILEc = $(CC) -D$(ORIG) -D$(BITORDER) $(CFLAGS) -DHIPS_IMAGE \
  94.     $(CPPFLAGS) $(TARGET_ARCH) $(FASTCOPY) $(FLOAT) -c
  95. LINKc = $(CC) -D$(ORIG) -D$(BITORDER) $(CFLAGS) -DHIPS_IMAGE \
  96.     $(CPPFLAGS) $(FLOAT) $(TARGET_ARCH) $(FASTCOPY) -o
  97. LIBRARIES = $(LDFLAGS) $(LIBRARY) $(OTHERLIBS) $(OTHERLIB2)
  98.  
  99. .SUFFIXES:    .out
  100.  
  101. .c.o:
  102.     $(COMPILEc) $<
  103.  
  104. .c.out:
  105.     $(LINKc) $* $< $(LIBRARIES)
  106.     strip $*
  107.     mv $* $(DESTDIR)
  108.     @touch $@
  109. ################ End of makefile.hdr ################
  110. # This file was generated by `gxv' from `segal'.
  111.  
  112. # Parameters.
  113.  
  114. HIPSDIR=/home/itg1/src/HIPS2/sun4
  115. LOCALINC=-I../../include -I$(GUIDEHOME)/include -I$(OPENWINHOME)/include
  116. PROGRAM = segal
  117. SOURCES.c = segal.c \
  118.     cmap.c \
  119.     cursor.c \
  120.     file.c \
  121.     list.c \
  122.     mask_grow.c \
  123.     mask_log.c \
  124.     paint.c \
  125.     quant.c \
  126.     region.c \
  127.     storage.c \
  128.     threshold.c \
  129.     timer.c \
  130.     view.c \
  131.     zoom.c
  132. SOURCES.h = segal.h \
  133.     common.h
  134.  
  135. # Include the name of the .G files from the segal.make file.
  136. include segal.make
  137.  
  138. # Derived parameters.
  139.  
  140. SOURCES = \
  141.     $(SOURCES.G) \
  142.     $(SOURCES.h) \
  143.     $(SOURCES.l) \
  144.     $(SOURCES.y) \
  145.     $(SOURCES.cps) \
  146.     $(SOURCES.c)
  147.  
  148. TARGETS.c = \
  149.     $(SOURCES.G:%.G=%_ui.c) \
  150.     $(STUBS.G:%.G=%_stubs.c)
  151.  
  152. TARGETS.h = \
  153.     $(SOURCES.G:%.G=%_ui.h) \
  154.     $(SOURCES.l:%.l=%.h) \
  155.     $(SOURCES.y:%.y=%.h) \
  156.     $(SOURCES.cps:%.cps=%.h)
  157.  
  158. TARGETS.other = \
  159.     $(SOURCES.G:%.G=%.info)
  160.  
  161. TARGETS = \
  162.     $(TARGETS.other) \
  163.     $(TARGETS.h) \
  164.     $(TARGETS.c)
  165.  
  166. OBJECTS = \
  167.     $(SOURCES.c:%.c=%.o) \
  168.     $(TARGETS.c:%.c=%.o)
  169.  
  170. # Compiler flags.
  171.  
  172. CFLAGS += -g -Bstatic
  173. CPPFLAGS += $(LOCALINC) -DMAIN
  174. LDFLAGS += -L$(GUIDEHOME)/lib -L$(OPENWINHOME)/lib -L$(HIPSDIR)/lib
  175. LIBRARIES += -lscs3 -llbl -lxcolor -lhips -lrle -ltiff -lguidexv -lxview -lolgx -lX11 -lm
  176.  
  177. # Standard targets.
  178.  
  179. all:     $(TARGETS.other) $(PROGRAM)
  180. objects: $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS)
  181. sources: $(SOURCES)
  182. targets: $(SOURCES) $(TARGETS)
  183.  
  184. $(PROGRAM): $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS)
  185.     $(LINK.c) -o $@ $(OBJECTS) $(LIBRARIES)
  186.     mv $(PROGRAM)    $(DESTDIR)
  187.  
  188. # Targets to be used by Saber-C.
  189.  
  190. saber_src:
  191.     #load $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) \
  192.         $(SOURCES.c) $(TARGETS.c) $(LIBRARIES)
  193.  
  194. saber_obj:
  195.     #load $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(OBJECTS) $(LIBRARIES)
  196.  
  197. clean:
  198.     $(RM) $(SOURCES.G:%.G=%_ui.c) $(TARGETS.other) $(TARGETS.h) $(OBJECTS) *.BAK *.delta core
  199.  
  200. $(PROGRAM).c: $(PROGRAM).P $(SOURCES.G)
  201.     $(GUIDEHOME)/bin/gxv -project $(PROGRAM) -main
  202.  
  203. $(PROGRAM).h: $(PROGRAM).c
  204.     @touch $@
  205.  
  206. %_ui.c: %.G
  207.     $(GUIDEHOME)/bin/gxv -project $(PROGRAM) $*
  208.  
  209. %_ui.h: %_ui.c
  210.     @touch $@
  211.  
  212. %_stubs.c: %_ui.c
  213.     @touch $@
  214.  
  215. %.info: %_ui.c
  216.     @touch $@
  217. ################ Beginning of makefile.tlr ################
  218. # Stuff that goes at the end of all the makefiles, but is not
  219. # configuration parameters should be in this file.  It is included
  220. # after makefile.src.
  221.  
  222. #config reads the configuration file and munches the appropriate make files
  223. config: doit
  224.     ${TOPDIR}/Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  225.  
  226. config-subdirs: doit
  227.     @-if test 'x$(DIRS)' != x ; then eval \
  228.         'for d in $(DIRS) ; do \
  229.             ( cd $$d ; \
  230.               echo Configuring ${HERE}$$d ; \
  231.               ${TOPDIR}/Configure "${CONFIG}" "${TOPDIR}" \
  232.                 "${HERE}$$d/" "${MFLAGS}" ) \
  233.         done' ; \
  234.     else \
  235.         true ; \
  236.     fi
  237.  
  238. doit:
  239.  
  240.  
  241. # Clean up installed stuff and binaries
  242. # pristine-pgm target invoked by pristine target in dirs that make programs
  243. pristine-pgm: clean-pgm
  244.     @-if test 'x$(PGMS)' != x ; then eval \
  245.         'for pgm in $(PGMS); do \
  246.             dpgm=`basename $$pgm .out`; \
  247.             echo rm -f $(DESTDIR)/$$dpgm ; \
  248.             rm -f $(DESTDIR)/$$dpgm ; \
  249.         done' ; \
  250.     else \
  251.         true ; \
  252.     fi
  253.  
  254. # Clean up binaries on program directories.
  255. clean-pgm:
  256.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) man-pgm libman-pgm
  257. clean_all:
  258.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) *-pgm *.a Makefile
  259.  
  260. # Install program manual pages
  261. man-pgm: $(MANPAGES)
  262.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  263.     chmod u+w $(MANPAGES)
  264.     for i in $(MANPAGES) ; \
  265.     do \
  266.         cp $$i $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  267.     done
  268.     chmod u-w $(MANPAGES)
  269.     touch man-pgm
  270.  
  271. # Install library manual pages
  272. libman-pgm: $(MANPAGES)
  273.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  274.     chmod u+w $(MANPAGES)
  275.     for i in $(MANPAGES) ; \
  276.     do \
  277.         cp $$i $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  278.     done
  279.     chmod u-w $(MANPAGES)
  280.     touch libman-pgm
  281.  
  282. # Uninstall program manual pages
  283. pristineman-pgm:
  284.     for i in $(MANPAGES) ; \
  285.     do \
  286.         rm -f $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  287.     done
  288.     rm -f man-pgm
  289.  
  290. # Uninstall library manual pages
  291. pristinelibman-pgm:
  292.     for i in $(MANPAGES) ; \
  293.     do \
  294.         rm -f $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  295.     done
  296.     rm -f libman-pgm
  297.  
  298. makefile:: makefile.src
  299.     ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  300.  
  301. ################ End of makefile.tlr ################
  302.